package com.hsnn.medstgmini.subscribe.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hsnn.medstgmini.util.FormatDate;

/**
 * @category 预约记录日志实体类
 * @author 韩守松
 * @date 2015年8月31日
 */
@Entity
@Table(name="bid_subscribe_record_log")
public class BidSubscribeRecordLog implements Serializable {
		/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
		private String logId;//日志id
		private String bidSubscribeRecordId;//预约记录ID	
		private String bidSubscribeDetailId;//预约详情ID	
		private String compId;//企业ID	
		private Integer status;//状态0停用1启用	
		private Integer processStatus;//处理状态 0未处理1已处理
		private Date processDatetime;//处理时间
		private String remarks;//备注 	
		private Date updDatetime;//更新时间
		private String updDatetimeStr;//
		private String updUser;//更新人
		
		@Id
		@Column(name="log_id",length=36 )
		public String getLogId() {
			return logId;
		}
		public void setLogId(String logId) {
			this.logId = logId;
		} 
		
		
		@Column(name="bid_subscribe_record_id",length=36 )
		public String getBidSubscribeRecordId() {
			return bidSubscribeRecordId;
		}
		public void setBidSubscribeRecordId(String bidSubscribeRecordId) {
			this.bidSubscribeRecordId = bidSubscribeRecordId;
		}
		
		@Column(name="bid_subscribe_detail_id",length=36 )
		public String getBidSubscribeDetailId() {
			return bidSubscribeDetailId;
		}
		public void setBidSubscribeDetailId(String bidSubscribeDetailId) {
			this.bidSubscribeDetailId = bidSubscribeDetailId;
		}
		
		@Column(name="comp_id",length=36 )
		public String getCompId() {
			return compId;
		}
		public void setCompId(String compId) {
			this.compId = compId;
		}
		
		@Column(name="status",length=4 )
		public Integer getStatus() {
			return status;
		}
		public void setStatus(Integer status) {
			this.status = status;
		}
		
		@Column(name="remarks",length=4000 )
		public String getRemarks() {
			return remarks;
		}
		public void setRemarks(String remarks) {
			this.remarks = remarks;
		}
		
		@Column(name="upd_datetime" )
		public Date getUpdDatetime() {
			return updDatetime;
		}
		public void setUpdDatetime(Date updDatetime) {
			this.updDatetime = updDatetime;
		}
		
		@Transient
		public String getUpdDatetimeStr() {
			if(null != updDatetime){
				updDatetimeStr = FormatDate.toFullFormat(updDatetime);
			}
			return updDatetimeStr;
		}
		public void setUpdDatetimeStr(String updDatetimeStr) {
			this.updDatetimeStr = updDatetimeStr;
		}
		
		@Column(name="upd_user",length=36 )
		public String getUpdUser() {
			return updUser;
		}
		public void setUpdUser(String updUser) {
			this.updUser = updUser;
		}
		@Column(name="process_status",length=4)
		public Integer getProcessStatus() {
			return processStatus;
		}

		public void setProcessStatus(Integer processStatus) {
			this.processStatus = processStatus;
		}

		@Column(name="process_datetime")
		public Date getProcessDatetime() {
			return processDatetime;
		}

		public void setProcessDatetime(Date processDatetime) {
			this.processDatetime = processDatetime;
		}
		
}
